<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul,li{
            padding: 0;
            list-style: none;
        }
        .clearfix::after{
            content: "";
            display: block;
            clear: both;
        }
        ul{
            /* border: 1px solid #000; */
        }
        ul li{
            width: 100px;
            height: 120px;
            background-color: pink;
            border: 1px solid red;
            float: left;
            margin: 0 10px;
        }
        ul li:hover{
            position: relative;
            left:2px;
            bottom: 2px;
        }
    </style>
</head>
<body>
    <ul class="clearfix">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>
</body>
</html>